<template>
    <div class="insufficient-permissions">
      <el-card class="card" shadow="always">
        <div class="content">
          <i class="el-icon-circle-close icon"></i>
          <h1>未登录</h1>
          <p>抱歉，请您登录后查看</p>
          <el-button type="primary" @click="goHome">返回首页</el-button>
          <el-button type="primary" @click="toLogin">立即登录</el-button>
        </div>
      </el-card>
    </div>
  </template>
  
  <script>
  export default {
    name: 'InsufficientPermissions',
    methods: {
      goHome() {
        this.$router.push('/');
      },
      toLogin(){
        this.$router.push('/login')
      }
    }
  }
  </script>
  
  <style scoped>
  .insufficient-permissions {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f7fa;
  }
  
  .card {
    width: 500px;
    border-radius: 8px;
    text-align: center;
    padding: 40px 20px;
  }
  
  .content {
    padding: 20px;
  }
  
  .icon {
    font-size: 80px;
    color: #e6a23c;
    margin-bottom: 20px;
  }
  
  h1 {
    color: #303133;
    margin-bottom: 15px;
  }
  
  p {
    color: #606266;
    margin-bottom: 30px;
  }
  
  .el-button {
    padding: 10px 40px;
    font-size: 16px;
  }
  </style>
  